﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace NFine.Data.Entity.SystemManage
{
    [Table("sys_region")]
    public class Region
    {
        [Key]
        public int Id { get; set; }
        public long? TenantId { get; set; }
        [ForeignKey("TenantId")]
        public Tenant Tenant { get; set; }
        [MaxLength(255)]
        public string FullName { get; set; }
        [MaxLength(50)]
        public string EnCode { get; set; }
        public int ParentId { get; set; }
        [MaxLength(255)]
        public string ShortName { get; set; }
        [MaxLength(255)]
        public int? Layers { get; set; }
        [MaxLength(50)]
        public string CityCode { get; set; }
        [MaxLength(50)]
        public string ZipCode { get; set; }
        [MaxLength(255)]
        public string MergerName { get; set; }
        public double? Longitude { get; set; }
        public double? Latitude { get; set; }
        [MaxLength(255)]
        public string FullSpell { get; set; }
        [MaxLength(255)]
        public string FirstSpell {get;set;}
    }
}
